package ext.acae2.change.autonumber;

import java.io.Serializable;

import wt.method.RemoteAccess;
import wt.services.Manager;
import wt.services.ManagerServiceFactory;
import wt.util.WTException;

/**
 * @desription TODO
 * @author cnie
 * @date 2013-5-10 下午4:33:00
 */
public class ECNServerFwd implements RemoteAccess, ECNServer, Serializable {
	/**
	 * @description:TODO
	 */
	private static final long serialVersionUID = 1L;
	private static final String FC_RESOURCE = "wt.fc.fcResource";
	private static final String CLASSNAME = ECNServerFwd.class.getName();

	/**
	 * 
	 * @description 
	 *   getManager
	 * @author cnie
	 * @date 2013-5-10 下午4:35:14
	 * @version 1.0
	 * @return
	 * @throws WTException
	 */
	private static Manager getManager() throws WTException {

		Manager manager = ManagerServiceFactory.getDefault().getManager(
				ext.acae2.change.autonumber.ECNServer.class);

		if (manager == null) {
			Object[] param = { "ext.acae2.change.autonumber.CNServer" };
			throw new WTException(FC_RESOURCE,
					wt.fc.fcResource.UNREGISTERED_SERVICE, param);
		}
		return manager;
	}
}
